<style>
	/*** 模型的样式表 ***/
	<#if reportModel?? && reportModel.viewtype != "view">
	.cz_<#if reportModel??>${reportModel.id}</#if>{
		<#if reportModel?? && reportModel.height??>height:${reportModel.height}px;<#else>height:220px;</#if>width:<#if reportModel??>${reportModel.width!'400'}px</#if>; margin: 0 auto;
	}  
	.cz_<#if reportModel??>${reportModel.id}</#if>_table{
		padding:5px;margin-left: 0px; margin-right: 0px; height: 225px;overflow:auto;
	}
	</#if>
	<#if reportModel?? && reportModel.styles??>
	<#list reportModel.styles as style>
	<#if style.pline??  && style.pline == "0">
	.cz_${style.dataid}_even{
		${style.style!''}
	}
	<#elseif style.pline??  && style.pline == "1">
	.cz_${style.dataid}_odd{
		${style.style!''}
	}
	<#else>
	.cz_${style.dataid}{
		${style.style!''}
	}
	</#if>
	</#list>
	</#if>
	td{white-space: nowrap;}
</style>
<script>
	$(document).ready(function(){
		//$(".shrinkage .sk_bt").addClass("active");
		$(".shrinkage table:not(:first)").hide();
	 
		$(".shrinkage .sk_bt").click(function(){
			$(this).next("table")
				.slideToggle("fast",function(){
					resizeDesign();
				})
				.siblings("table").slideUp("fast");
			$(this).toggleClass("active");
			$(this).siblings(".sk_bt").removeClass("active");
		});
	});
	function submitSearchForm(action){
		//$("#beginNum").val($("#beginNumShow").val());
		//$("#endNum").val($("#endNumShow").val());
		var reg = /^[0-9]*$/;
		if(reg.test($("#p").val())){
			location.href = "<#if col??&&row??>/${orgi}/user/report/reportdrilldown/${report.id!''}/${reportModel.id!''}/${pageNumber!''}/${row!''}/${col!''}.html<#else>/${orgi}/user/report/view/${report.id!''}.html</#if>?p="+$("#p").val()+"&ps="+$("#ps").val()+"&opt="+action ;
		}else{
			art.alert("请输入正确的页码信息！");
		}
	}

</script>

<div class="container rs_layout" wrapper="true"><!-- Everything started here -->
	<div class="rs_layout_top">
		<div class="nav_top"><!--NavTop-->
			<div class="nav_controlBar">
				<ul class="nav_controlList">
					<li class="nav_controlIthems"><a href="/${orgi}/user/index.html"><i class="navIcons nicon-2"></i>首页</a></li>
					<li class="nav_controlIthems"><a href="javascript:window.close();"><i class="navIcons nicon-5"></i>退出</a></li>
				</ul>
				<div class="nav_name">欢迎使用，<#if user??>${user.username!''}<#else>Guest</#if></div>
			</div>
			<h1 class="comName"><#if dashboard??>${dashboard.name!''}<#else>${report.name!''}</#if></h1>
		</div>
		<#if reportList??>
		<ul class="nav_tapWrap">
			<#list reportList as dsReport>
			<li class="nav_tapIthems <#if reportid == dsReport.id>cur</#if>"><i class="tabIcon"></i><a href="/${orgi}/user/report/view/${dsReport.id!''}.html">${dsReport.name!''}</a></li>
			</#list>
		</ul>
		</#if>
	</div>
	<div class="rs_layout_center reTabcon">
		<div class="rs_layout show">
			<!--
			<div class="rs_layout_top breadCrumbWrap" style="border:0px;">
				<ul class="controlButtons">
					<li class="cbtn-icon-1"></li>
					<li class="cbtn-icon-2"></li>
					<li class="cbtn-icon-3" id="newdir" href="/rivues/user/index.html"></li>
					<li class="cbtn-icon-4"></li>
					<li class="cbtn-icon-5"></li>
					<li class="cbtn-icon-6"></li>
				</ul>
			</div>
			 -->
			<!--<div class="rs_layout_right" style="width:300px;"></div>-->
			<div class="rs_layout_center">
				<div class="designer_k noborder cz_<#if reportModel??>${reportModel.id}</#if>" style="overflow:auto;padding:5px 0px 5px 0px;height:100%;" id="design_table" >
					<#include "template.html"/>
				</div>
			</div>
		</div>
</div>